
export const hasPermissions = (data, name) => Array.isArray(data) &&
    data.length > 0 && data.some(item => item === name);
